NAME
	GU_GadgetArrayIndex -- Get a gadget's index in the LayoutGadget array.

   SYNOPSIS
	index = GU_GadgetArrayIndex(id, gadgets)
	D0,D1,SR(Z)                 D0  A0

	WORD GU_GadgetArrayIndex(WORD, struct LayoutGadget *);

   FUNCTION
	Get a gadget's index in the Layoutgadget structure.
   INPUTS
	id      - The ID of the gadget you want to find.
	gadgets - The LayoutGadget array that this gadget is defined in.

   RESULT
	index - The index into the LayoutGadget array of the entry with the
	        gadget ID you asked for. Returns -1 for failure.

	SR(Z) - Set for failure. Cleared otherwise. Probably only usable for
	        assembly language programmers.

   SEE ALSO


[Main] [Previous] [Next]

Converted on 19 Jul 1996 with RexxDoesAmigaGuide2HTML by Michael Ranner.